package cn.dada.dadarecipes.mall.shop.mapper;

import cn.dada.dadarecipes.mall.shop.pojo.entity.Shop;
import cn.dada.dadarecipes.mall.shop.pojo.dto.ShopSelectParam;
import cn.dada.dadarecipes.backend.merchant.pojo.vo.MerchantShopVO;
import cn.dada.dadarecipes.mall.shop.pojo.entity.Shop;
import cn.dada.dadarecipes.mall.shop.pojo.vo.ShopVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ShopMapper {

    ShopVO selectShop(Long shopId);
    List<MerchantShopVO> selectMerchantShop(ShopSelectParam shopSelectParam);
    List<Long> selectMerchantShopByShopName(String shopName);

    boolean addMerchantShop(Shop shop);

    boolean updateMerchantShop(Shop shop);

    boolean deleteMerchantShop(@Param("id") Long id,@Param("businessId") Long businessId);

}
